import type { CustomRoute } from '@elegant-router/types';

// 客户端路由配置
export const clientRoutes: CustomRoute[] = [
  {
    name: 'client',
    path: '/client',
    component: 'layout.client',
    redirect: '/client/home',
    meta: {
      title: '客户端系统',
      icon: 'mdi:account',
      constant: true
    },
    children: [
      {
        name: 'client_home',
        path: '/client/home',
        component: 'view.client_home',
        meta: {
          title: '客户端首页',
          icon: 'mdi:home',
          constant: true
        }
      },
      {
        name: 'client_category',
        path: '/client/category',
        component: 'view.client_category',
        meta: {
          title: '分类页面',
          icon: 'mdi:folder',
          constant: true
        }
      },
      {
        name: 'client_tags',
        path: '/client/tags',
        component: 'view.client_tags',
        meta: {
          title: '标签页面',
          icon: 'mdi:tag',
          constant: true
        }
      },
      {
        name: 'client_archive',
        path: '/client/archive',
        component: 'view.client_archive',
        meta: {
          title: '归档页面',
          icon: 'mdi:archive',
          constant: true
        }
      },
      {
        name: 'client_home_article-detail',
        path: '/client/home/article-detail',
        component: 'view.client_home_article-detail',
        meta: {
          title: 'client_home_article-detail',
          i18nKey: 'route.client_home_article-detail'
        }
      },
      {
        name: 'client_category_category-article',
        path: '/client/category/category-article',
        component: 'view.client_category_category-article',
        meta: {
          title: 'client_category_category-article',
          i18nKey: 'route.client_category_category-article'
        }
      }

    ]
  }
];